﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace _8轴运动控制
{
    public partial class FrmPassword : Form
    {
        public FrmPassword()
        {
            InitializeComponent();
            this.TopMost = true;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (this.txt_Password.Text=="123456")
            {
                this.DialogResult = DialogResult.OK;
                //this.DialogResult = DialogResult.Cancel;
            }
            else
            {
                MessageBox.Show("密码错误");
                return;
            }
            
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
        }

        private void 用户登录_FormClosed(object sender, FormClosedEventArgs e)
        {
            
        }
    }
}
